/*
 * constant.h
 *
 *  Created on: 02-Sep-2014
 *      Author: ali
 */

#ifndef CONSTANT_H_
#define CONSTANT_H_
#include <math.h>

struct STAT
{
	double dPACKETTOBS;
	double dPACKETTOCH;
	double dCHCount;
};
const int nMaxLen = 100;
const int nMaxWidth = 100;

const int nMaxQuarterCount = 4;

const double dActivityhreasholdPower = 0.000452;
const int nMaxRoundcount = 10000;
const double dMaxSinkPower = 100;
#define DEV cout << "Notice File "<< __FILE__  << "  " << __LINE__  <<endl;
//Network Parameters
//An Energy-efficient Clustering Algorithm in Wireless Sensor Networks with Multiple Sink
const int nMaxSensorCount = 100;
const double Eelec = 50 * 0.000000000001; //50nJ/bit //ETX
const double ETX = Eelec; //50nJ/bit //ETX
const double Efs = 10 * 0.000000000001; //10pJ/bit/ m2

const double Emp = 0.0013 * 0.000000000001; //0.0013pJ/bit/ m4
const double EDA = 5 * 0.000000001;
const double Efs1 = Efs / 10;
const double Emp1 = Emp / 10;
const double Einit = 0.5;

const double dMinPowerToRemainCH = Einit * 0.25;
const double dMinPowerForCHSelection = Einit * 0.01;

const int LEACH_AD_MESSAG = 12;
const double LEACH_AD_DISTANCE = 25;
const int DATA_MESSAGE_LENGTH = 4000;
const double dTxRange =  sqrt( 50*50 + 50*50/9);


#endif /* CONSTANT_H_ */

